package com.sccba.emtbusiness.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.sccba.emtbusiness.mapper.YjczItemChannelMapper;
import com.sccba.emtbusiness.domain.YjczItemChannel;
import com.sccba.emtbusiness.service.IYjczItemChannelService;

/**
 * 重大发版事项与应用系统的关联Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-07-25
 */
@Service
public class YjczItemChannelServiceImpl implements IYjczItemChannelService 
{
    @Autowired
    private YjczItemChannelMapper yjczItemChannelMapper;

    /**
     * 查询重大发版事项与应用系统的关联
     * 
     * @param pkId 重大发版事项与应用系统的关联主键
     * @return 重大发版事项与应用系统的关联
     */
    @Override
    public YjczItemChannel selectYjczItemChannelByPkId(Long pkId)
    {
        return yjczItemChannelMapper.selectYjczItemChannelByPkId(pkId);
    }

    /**
     * 查询重大发版事项与应用系统的关联列表
     * 
     * @param yjczItemChannel 重大发版事项与应用系统的关联
     * @return 重大发版事项与应用系统的关联
     */
    @Override
    public List<YjczItemChannel> selectYjczItemChannelList(YjczItemChannel yjczItemChannel)
    {
        return yjczItemChannelMapper.selectYjczItemChannelList(yjczItemChannel);
    }

    /**
     * 新增重大发版事项与应用系统的关联
     * 
     * @param yjczItemChannel 重大发版事项与应用系统的关联
     * @return 结果
     */
    @Override
    public int insertYjczItemChannel(YjczItemChannel yjczItemChannel)
    {
        return yjczItemChannelMapper.insertYjczItemChannel(yjczItemChannel);
    }

    /**
     * 修改重大发版事项与应用系统的关联
     * 
     * @param yjczItemChannel 重大发版事项与应用系统的关联
     * @return 结果
     */
    @Override
    public int updateYjczItemChannel(YjczItemChannel yjczItemChannel)
    {
        return yjczItemChannelMapper.updateYjczItemChannel(yjczItemChannel);
    }

    /**
     * 批量删除重大发版事项与应用系统的关联
     * 
     * @param pkIds 需要删除的重大发版事项与应用系统的关联主键
     * @return 结果
     */
    @Override
    public int deleteYjczItemChannelByPkIds(Long[] pkIds)
    {
        return yjczItemChannelMapper.deleteYjczItemChannelByPkIds(pkIds);
    }

    /**
     * 删除重大发版事项与应用系统的关联信息
     * 
     * @param pkId 重大发版事项与应用系统的关联主键
     * @return 结果
     */
    @Override
    public int deleteYjczItemChannelByPkId(Long pkId)
    {
        return yjczItemChannelMapper.deleteYjczItemChannelByPkId(pkId);
    }

    @Override
    public void batchInsert(List<YjczItemChannel> list) {
        yjczItemChannelMapper.batchInsert(list);
    }

    @Override
    public void deleteByItemId(Long itemId) {
        yjczItemChannelMapper.deleteByItemId(itemId);
    }

    @Override
    public List<YjczItemChannel> selectItemChannelByItemId(List<Long> itemIds) {
        return yjczItemChannelMapper.selectItemChannelByItemId(itemIds);
    }


}
